package com.irdstudio.efp.riskm.service.dao;

import com.irdstudio.efp.riskm.service.domain.PspSpecCheckCus;
import com.irdstudio.efp.riskm.service.vo.PspSpecCheckCusVO;
import org.springframework.data.repository.query.Param;

import java.util.List;
/**
 * <p>DAO interface:专项检查客户表				<p>
 * @author ligm
 * @date 2019-09-04
 */
public interface PspSpecCheckCusDao {
	
	public int insertPspSpecCheckCus(PspSpecCheckCus pspSpecCheckCus);

	//批量新增操作
	public int insertPspSpecCheckCusList(List<PspSpecCheckCusVO> pspSpecCheckCusList);

	public int deleteByPk(PspSpecCheckCus pspSpecCheckCus);

	public int deleteOneInfo(PspSpecCheckCus pspSpecCheckCus);

	public int updateByPk(PspSpecCheckCus pspSpecCheckCus);

	public int updateBizSerno(PspSpecCheckCus pspSpecCheckCus);

	public int updateCusIdByPk(PspSpecCheckCus pspSpecCheckCus);

	public PspSpecCheckCus queryByPk(PspSpecCheckCus pspSpecCheckCus);

	public PspSpecCheckCus queryCusByPk(PspSpecCheckCus pspSpecCheckCus);

	/**
	 * create by luzy 2019/10/16
	 * description  查询未登记完成的cusID  chkInputSts = '00'
	 * */
	public List<PspSpecCheckCus> querychkInputSts(PspSpecCheckCusVO pspSpecCheckCusVO);

	public List<PspSpecCheckCus> queryListCusInfoByPage(PspSpecCheckCusVO pspSpecCheckCusVO);

	public List<PspSpecCheckCus> queryAllOwnerByPage(PspSpecCheckCusVO pspSpecCheckCus);

	public List<PspSpecCheckCus> queryAllCurrOrgByPage(PspSpecCheckCusVO pspSpecCheckCus);
	
	public List<PspSpecCheckCus> queryAllCurrDownOrgByPage(PspSpecCheckCusVO pspSpecCheckCus);

	/** 贷后人工检查发起 批量新增数据 */
	public int insertBatchInfo(List<PspSpecCheckCus> plsOrgMonthlyLoanTempList);

	public List<PspSpecCheckCus> queryChkNameIsNullAllByPage(PspSpecCheckCusVO pspSpecCheckCus);

	public int deleteChkNameIsNul(PspSpecCheckCus pspSpecCheckCus);

	public int deleteChkName(PspSpecCheckCus pspSpecCheckCus);

	public int insertOrUpdateByPk(PspSpecCheckCus pspSpecCheckCus);

	public PspSpecCheckCus queryByCusIdBizSerno(PspSpecCheckCus pspSpecCheckCus);

	public List<PspSpecCheckCus> queryByCusIdList(PspSpecCheckCusVO inPspSpecCheckCusVO);

	public List<PspSpecCheckCus> queryImportDatas(PspSpecCheckCusVO inPspSpecCheckCusVO);

	public int batchupdateBizSerno(@Param("importDatasList") List<PspSpecCheckCus> importDatasList);

	public int updateByBizCus(PspSpecCheckCus pspSpecCheckCus);

	public List<PspSpecCheckCus> queryByBizSerno(@Param("bizSerno") String bizSerno);
}
